<template>
    <div>
        <van-search v-model="search" show-action label="" placeholder="请输入搜索关键词" @search="onSearch">
            <template #action>
                <div @click="onClickButton">搜索</div>
            </template>
        </van-search>

        
    </div>
</template>

<script setup>

import { useRoute, useRouter } from 'vue-router'
const router = useRouter()

import { ref } from "vue"

import { searchApi } from '@/api/api'

let search = ref('')

const onSearch = () => {
    router.push("/search")
}



</script>

<style lang="scss" scoped></style>